package com.huayi.test.springbootcomm.constant;

public enum ErrCodeInfo {
    /**
     * 交易失败
     */
    FALIURE("999999","交易失败"),
    /**
     * 交易成功
     */
    SUCCESS("000000","交易成功"),
    /**
     * 交易码未正确配置
     */
    TRANS_CODE_NOT_FOUND("SYS.1001","交易码未正确配置"),
    /**
     * 交易报文转换对应交易报文出错
     */
    TRANS_MESSAGE("HY3002","交易报文转换对应交易报文出错"),
    /**
     * 插入数据库失败
     */
    INSERT_DATABASE_FALIURE("DB1001","插入数据库失败"),

    DB_NOT_DATA("DB1002","数据库无记录"),

    ;

    private String errCode;
    private String errMsg;

    ErrCodeInfo(String errCode,String errMsg){
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public String getErrCode(){
        return errCode;
    }
    public String getErrMsg(){
        return errMsg;
    }
}
